package com.gxa.community.core.pojo.vo;

import com.gxa.community.core.pojo.domain.OperateTicketGoodsRel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TicketsAddVo {

    @ApiModelProperty("优惠券编号")
    private String ticketNo;

    @ApiModelProperty("优惠券名称")
    private String name;

    @ApiModelProperty("优惠券类型/1-全场优惠券/2-注册赠卷/3-购物赠卷")
    @Length(min=1,max=3)
    private Integer type;

    @ApiModelProperty("使用商品/1-全品类商品/2-指定商品/3-指定分类(*)")
    @Length(min=1,max=3)
    private Integer useType;

    @ApiModelProperty("总发行量")
    private Integer num;

    @ApiModelProperty("面值")
    private Double price;

    @ApiModelProperty("限领数量	")
    private Integer stint;

    @ApiModelProperty("使用限制/1-无限制/2-满减")
    @Length(min=1,max=2)
    private Integer useStint;

    @ApiModelProperty("满减价格")
    private Double fullPrice;

    @ApiModelProperty("开始时间")
    private Long startTime;

    @ApiModelProperty("结束时间")
    private Long endTime;

    @ApiModelProperty("备注")
    private String remark;

    private List<OperateTicketGoodsRel> operateTicketGoodsRel;
}
